package com.joyoung.sdk;

import android.app.Application;
import android.test.ApplicationTestCase;

import com.joyoung.sdk.resolve.JxXML;

import org.dom4j.DocumentException;

import java.io.IOException;
import java.util.Iterator;
import java.util.LinkedHashMap;

/**
 * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
 */
public class ApplicationTest extends ApplicationTestCase<Application> {
    private  JxXML jxXML;

    public ApplicationTest() {
        super(Application.class);
        if (jxXML == null)
            jxXML = new JxXML(getApplication());
        LinkedHashMap listOrderedMap = null;
        try {
            listOrderedMap = jxXML.readFromAssets("config/config.xml");
        } catch (IOException e) {
            e.printStackTrace();
        } catch (DocumentException e) {
            e.printStackTrace();
        }
        Iterator<String> keys = listOrderedMap.keySet().iterator();
    }

}